package com.yanqu.road.logic.bussiness.activity;

import com.yanqu.road.entity.activity.starlight.StarLightMallRecord;
import com.yanqu.road.logic.bussiness.DaoHelper;

import java.util.List;

/**
 * @Author : Cxp
 * @Time : 2024-11-12
 * @Description : 星星点灯-Business
 */

public class StarLightBusiness {
    public static List<StarLightMallRecord> getMallRecordsByUserId(int activityId, long userId) {
        return DaoHelper.getStarLightMallRecordMapDaoImpl().getMallRecordsByUserId(activityId, userId);
    }

    public static List<StarLightMallRecord> getMallRecordsByType(int activityId, int type) {
        return DaoHelper.getStarLightMallRecordMapDaoImpl().getMallRecordsByType(activityId, type);
    }

    public static boolean addMallRecord(StarLightMallRecord activityMallRecord) {
        return DaoHelper.getStarLightMallRecordMapDaoImpl().add(activityMallRecord);
    }

    public static boolean updateMallRecord(StarLightMallRecord activityMallRecord) {
        return DaoHelper.getStarLightMallRecordMapDaoImpl().update(activityMallRecord);
    }
}
